import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    name: 'indexView',
    component: () => import(/* webpackChunkName: "about" */ '../views/indexHome/indexView.vue')
  },
  {
    path: '/index',
    name: 'indexView2',
    component: () => import(/* webpackChunkName: "about" */ '../views/indexHome/indexView.vue')
  },
  {
    path: '/head',
    name: 'head',
    component: () => import(/* webpackChunkName: "about" */ '../components/head.vue')
  },
  {
    path: '/login',
    name: 'login',  
    component: () => import(/* webpackChunkName: "about" */ '../views/loginViews/login.vue')
  },
  {
    path: '/detail',
    name: 'userDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/detailViews/userDetail.vue')
  },

  {
    path: '/productDetail',
    name: 'productDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/productDetail/productDetail.vue')
  },

  {
    path: '/mycart',
    name: 'mycart',
    component: () => import(/* webpackChunkName: "about" */ '../views/cartViews/mycart.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
